<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
// import HelloWorld from '@/components/HelloWorld.vue'

import { onMounted } from "vue";
import { ElConfigProvider } from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn";
const locale = zhCn;
onMounted(() => {
  console.log(`当前运行环境 : env ->【${JSON.stringify(import.meta.env)}】`);
  console.log(`当前运行环境 : mode ->【${import.meta.env.MODE}】`);
  console.log(`当前运行环境 : base_url ->【${import.meta.env.BASE_URL}】`);
  console.log(
    `当前运行环境 : vite_api_base_url ->【${import.meta.env.VITE_API_BASE_URL}】`,
  );
});
</script>

<template>
  <!--本地化语言-->
  <el-config-provider :locale="locale">
    <!--路由渲染出口-->
    <router-view />
  </el-config-provider>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
</style>
